
exports.__esModule = true;
exports.addUnit = addUnit;

const _ = require('..');

const _number = require('../validate/number');

function addUnit(value) {
  if (!(0, _.isDef)(value)) {
    return undefined;
  }

  value = String(value);
  return (0, _number.isNumeric)(value) ? `${value}px` : value;
}
